package org.jeecg.modules.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.biz.entity.EventSettle;

import java.util.List;

/**
 *
 * 认筹任务 mapper 接口
 *
 */
public interface EventSettleMapper extends BaseMapper<EventSettle> {
    @Select("select * from event_settle order by timestamp desc limit 0,1")
    EventSettle getLatestOne();

    @Select("select a.caller from event_settle a where inviter = #{inviter} group by caller")
    List<String> findCallerListByInviter(@Param("inviter") String inviter);
}
